var xu = document.querySelectorAll('.xu-up');
var xuup = document.querySelectorAll('.xu-up1');
console.log(xu);
console.log(xuup);
var flag = 1;
for (var i = 0; i < xuup.length; i++) {
    xu[i].index = i;
    console.log(xuup);
}
xu[i].onclick = function () {
    if (flag == 1) {
        xuup.style.transform = 'rotateY(180deg)';
        xu.style.Color = 'red';
        flag = 2;

    }
    else if (flag == 2) {
        xuup.style.transform = 'rotateY(0deg)'
        xu.style.Color = 'red';
        flag = 1;
    }
}
$('.font-right-list li>.show').click(function () {
    $(this).addClass('red').siblings().removeClass('red');

})
// tab栏
var categorys_items = document.querySelectorAll('.categorys-items');
var categorys_items_layer = document.querySelectorAll('.categorys-items-layer');
// 排他
function page() {
    for (var i = 0; i < categorys_items_layer.length; i++) {
        categorys_items_layer[i].className = 'categorys-items-layer';
    }
};
for (var j = 0; j < categorys_items_layer.length; j++) {
    categorys_items[j].index = j;
    categorys_items[j].onmouseover = function () {
        page();
        categorys_items_layer[this.index].className = 'categorys-items-layer show';
    }
    categorys_items[j].onmouseout = function () {
        page();
    }
};
$(function () {
    $('#xian').click(function () {
        $('.am-c-one-erji').slideToggle(800);
        $('#').css('height', '40px')
    });

})
